<%@ page language="java"  pageEncoding="UTF-8" contentType="text/html;charset=UTF-8" %>
<%@ include file="/common/taglibs.jsp"%>
<html>
<head>
<title>首页测试</title>
<script type="text/javascript">
	FBCMS.loadDwr("testDwr");
	$(document).ready(function(){
		testDwr.testList(function(o){
			//FBCMS.alert(o.key1);
		});
	});
	var testFun = function(){
		var id = document.getElementById("main");
		//var id = $("#main");
		Hilite.hiliteElement(id, "Hello");
		testDwr.getActicleList(function(data){
			var str = [];
			str.push("<ul>");
			for(var i = 0;i < data.length;i++){
				str.push("<li>");
				str.push(data[i].content);
				str.push("</li>");
			}
      		str.push("</ul>");
      		$("#content").html(str.join(''));
		});
	}
</script>
<style>
.hilite1 { background-color: #ff0; }
.hilite2 { background-color: #5f5; }
.hilite3 { background-color: #afa; }
.hilite4 { background-color: #0ff; }
</style>
</head>
<body>
<div id="main">
<h2>Hello World!</h2>
<s:property value="map.key1" />
<!-- content开始 -->
<div style="height:400px;" class="maintable clear">
	<div class="lefttable">
		<input type="button" value="Test" onclick="testFun();" />
	</div>
	<%session.invalidate(); %>
	<div class="righttable">
		<span id="content"></span>
	</div>
</div>
<!-- content结束 -->
</div>
</body>
</html>
